package cn.tedu.supermarket.entity;

import java.io.Serializable;

public class CartDetail implements Serializable {
    private int id;
    private Integer goodsId;
    private String name;
    private String imgurl;
    private Integer price;
    private Integer num;
    private Integer sumPrice;

    public CartDetail() {
    }

    public CartDetail(int id, String name, String imgurl, Integer price, Integer num, Integer sumPrice) {
        this.id = id;
        this.name = name;
        this.imgurl = imgurl;
        this.price = price;
        this.num = num;
        this.sumPrice = sumPrice;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(Integer sumPrice) {
        this.sumPrice = sumPrice;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    @Override
    public String toString() {
        return "CartDetail{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", name='" + name + '\'' +
                ", imgurl='" + imgurl + '\'' +
                ", price=" + price +
                ", num=" + num +
                ", sumPrice=" + sumPrice +
                '}';
    }
}
